package cn.bgs.serviceedu;

import cn.bgs.serviceedu.MyConfig.FeignConfig;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/**
 * @Author:YiChen
 * @program: IntelliJ IDEA
 * @Description:
 * @Created 2021/9/28-20:02
 */
@SpringBootApplication
@EnableFeignClients   //服务调用
@EnableDiscoveryClient  //nacos注册
@ComponentScan(basePackages = {"cn.bgs"})
@MapperScan("cn.bgs.serviceedu.dao")
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class);

    }


}
